package com.example.horizonserver.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Dispatch implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String number;
    private Integer vehicleId;
    @TableField(exist = false)
    private String vehicleName;
    private String categoryName;
    private Integer userId;
    @TableField(exist = false)
    private String userName;
    private String useReason;
    @TableField(value = "status")
    private Integer status;
    private String rejectReason;
    private LocalDateTime useTime;
    private BigDecimal cost;

}
